package com.XZDP.mapper;

import com.XZDP.dto.LoginFormDTO;
import com.XZDP.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface UserMapper extends BaseMapper<User> {


    @Select("select *from tb_user where email=#{phone}")
    User getByEmail(LoginFormDTO loginForm);

   void addUser(User user);
}
